package lab02.test06;

public class Ladder {
    Ladder(){}
    //构造函数
    float up;
    float down;
    float height;
    float area;
    //属性：上、下、高、面积
    double area(){
        return ((up+down)*height)/2;
        //行为：计算面积
    }
}
